import request from '@/utils/request'

// 查询短剧信息列表
export function listShortPlayInfo(query) {
  return request({
    url: '/shortPlay/shortPlayInfo/list',
    method: 'get',
    params: query
  })
}

// 查询短剧信息详细
export function getShortPlayInfo(id) {
  return request({
    url: '/shortPlay/shortPlayInfo/' + id,
    method: 'get'
  })
}

// 新增短剧信息
export function addShortPlayInfo(data) {
  return request({
    url: '/shortPlay/shortPlayInfo',
    method: 'post',
    data: data
  })
}

// 修改短剧信息
export function updateShortPlayInfo(data) {
  return request({
    url: '/shortPlay/shortPlayInfo',
    method: 'put',
    data: data
  })
}

// 删除短剧信息
export function delShortPlayInfo(id) {
  return request({
    url: '/shortPlay/shortPlayInfo/' + id,
    method: 'delete'
  })
}


// 修改状态
export function editState(query) {
  return request({
    url: '/shortPlay/shortPlayInfo/edit/state',
    method: 'get',
    params: query
  })
}